<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateInvitingClassifyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('inviting_classify', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->commit("名称");
            $table->integer('img_id')->default(0)->commit("图片id");
            $table->softDeletes();
            $table->timestamps();
        });
        Schema::table('inviting_advert', function (Blueprint $table) {
            $table->integer('inviting_classify_id')->default(0)->commit("分类id")->after("desc");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
